#!/usr/bin/python3
#--------------------#
# AboutDialog dialog #
#--------------------#
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk,GdkPixbuf

class AboutDialog(Gtk.AboutDialog):
    def __init__(self):
        logo = GdkPixbuf.Pixbuf.new_from_file_at_size("/usr/share/pdc/icons/pdc.png", 64, 64)

        Gtk.AboutDialog.__init__(self)
        self.set_version("Version 3.0")
        self.set_comments("PCLinuxOS Community Development")
        self.set_website("http://www.pclinuxos.com/")
        self.set_authors(["PCLinuxOS Community Development\nCopyright © 2024 GPLv3\n\nThis program is free software: you can redistribute\nit and/or modify it under the terms of\nthe GNU General Public License as published\nby the Free Software Foundation, either version 3\nof the License, or (at your option) any later version."])
        self.set_logo(logo)
        self.connect("response", self.on_response)

    def on_response(self, dialog, response):
        self.destroy()

aboutdialog = AboutDialog()
aboutdialog.run()






